<template>
<div class="icons" @click="$router.push({ name: 'optional' })">
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/水果.png" class="icon-img-content" /></div>
    <p class="icon-desc">水果</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/蔬菜.png" class="icon-img-content" /></div>
    <p class="icon-desc">蔬菜</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/肉食.png" class="icon-img-content" /></div>
    <p class="icon-desc">肉食</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/休闲.png" class="icon-img-content" /></div>
    <p class="icon-desc">休闲</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/娱乐.png" class="icon-img-content" /></div>
    <p class="icon-desc">娱乐</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/民宿.png" class="icon-img-content" /></div>
    <p class="icon-desc">民宿</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/运动.png" class="icon-img-content" /></div>
    <p class="icon-desc">运动</p>
  </div>
  <div class="icon">
    <div class="icon-img"><img src="@/assets/img/景点.png" class="icon-img-content" /></div>
    <p class="icon-desc">景点</p>
  </div>
  
</div>
</template>

<script>
export default {
  name: 'HomeIcons',
}
</script>

<style scoped>
.icons {
  display: flex;
  flex-wrap: wrap;
  width: 327px;
  height: 136px;
  background: #FFFFFF;
  box-shadow: 0px 3px 14px rgba(78, 112, 184, 0.07);
  border-radius: 8px;
  margin: 24px auto;
  box-sizing: border-box;
}

.icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 25%;
  align-items: center;
}

.icon-img {
  width: 28px;
  height: 28px;
  margin: 2px auto
}

.icon-img img {
  width: 28px;
  height: 28px;
}

.icon-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  color: #2C2E34;
  text-align: center;

}
</style>
